from multiprocessing.connection import Listener
from array import array

address=("localhost",8888)
if __name__ == "__main__":
    with Listener(address,authkey=b'abcdef123456') as listener:
        with listener.accept() as conn:
            print("connection accepted from",listener.last_accepted)
            conn.send(["hello world",123,3.14,None,True])
            conn.send_bytes(b'hello')
            conn.send_bytes(array('i',[1,2,3,4]))